package springdao.reposotory;

import springdao.RepositoryManager;
import springdao.model.Member;

/**
 *
 * @author Kent Yeh
 */
public class RepositoryManagerExt<E> extends RepositoryManager<E> {

    @Override
    public E refresh(E entity) {
        entity =  super.refresh(entity);
        if(entity instanceof Member){
            logger.debug("***** 0. user stores count = {}",((Member)entity).getUserstores().size());
        }
        return entity;
    }
    
}
